package com.hjh.dubbo.demo1.provider.service;

import com.alibaba.dubbo.config.annotation.Service;
import com.hjh.dubbo.demo1.api.service.DemoService;

@Service
public class DemoServiceImpl implements DemoService {

	public Integer add(Integer a, Integer b) {
		System.err.printf("方法add被调用 %s+%s", a, b);
		System.err.println();
		if (a == null || b == null) {
			return 0;
		}
		return a + b;
	}
}